package com.tianfeng.huayi.service.impl;

import com.tianfeng.huayi.entity.Owner;
import com.tianfeng.huayi.mapper.OwnerMapper;
import com.tianfeng.huayi.service.IOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OWnerServiceImpl implements IOwnerService {
    @Autowired
    private OwnerMapper ownerMapper;
    @Override
    public Owner selectOwnerByOwnerId(Long ownerId) {
        return ownerMapper.selectOwnerByOwnerId(ownerId);
    }

    @Override
    public List<Owner> selectOwnerList(Owner owner) {
        return ownerMapper.selectOwnerList(owner);
    }
}
